package com.example.mybatis_demo.typeHandler;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;

/**
 * @author dzh
 * @since 2024/11/29
 */
@MappedTypes({JSONObject.class})
@MappedJdbcTypes(JdbcType.VARCHAR)
public class JSONObjectTypeHandler extends FastjsonTypeHandler {
    public JSONObjectTypeHandler(Class<?> type) {
        super(type);
    }
}
